import request from '@/utils/request';

/**
 * @author yykk
 * @date: 2022-05-17 14:04:38
 * @desc: 视频模块模块业务
 * @version：1.0.0
 */
export default {

  // 1: 查询$搜索&分页视频模块
  findUserVideoPage(uservideoVo = {pageNo: 1, pageSize: 10}) {
    return request.post("uservideo/list", uservideoVo);
  },

  // 2: 查询视频模块列表
  findUserVideoList() {
    return request.get("uservideo/load");
  },

  // 3: 保存&修改视频模块
  saveUpdateUserVideo(uservideo = {}) {
    return request.post("uservideo/saveupdate", uservideo);
  },

  // 4: 根据id删除视频模块
  delUserVideo(id) {
    if (!id) {
      return;
    }
    return request.post("uservideo/delete/" + id);
  },

  // 5: 批量删除视频模块
  delBatchUserVideo(batchIds) {
    if (!batchIds) {
      return;
    }
    return request.post("uservideo/delBatch", {batchIds});
  },

  // 6: 根据id查询视频模块明细
  getUserVideo(id) {
    if (!id) {
      return;
    }
    return request.get("uservideo/get/" + id);
  },


}
